package com.gitee.kamismile.stone.basic.data.domain.sysUser.repository.entity;

import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Table;

import java.util.Objects;

@Table(name = "sys_user_shortcut")
public class SysUserShortcut {
    @Id
    private Integer nSysUserShortcutId;
    private Integer nUserId;
    private Integer nTenantId;
    private Integer nMenuId;
    private Integer nShortx;
    private Integer nShorty;

    public Integer getnTenantId() {
        return nTenantId;
    }

    public void setnTenantId(Integer nTenantId) {
        this.nTenantId = nTenantId;
    }

    public Integer getnSysUserShortcutId() {
        return nSysUserShortcutId;
    }

    public void setnSysUserShortcutId(Integer nSysUserShortcutId) {
        this.nSysUserShortcutId = nSysUserShortcutId;
    }

    public Integer getnUserId() {
        return nUserId;
    }

    public void setnUserId(Integer nUserId) {
        this.nUserId = nUserId;
    }

    public Integer getnMenuId() {
        return nMenuId;
    }

    public void setnMenuId(Integer nMenuId) {
        this.nMenuId = nMenuId;
    }

    public Integer getnShortx() {
        return nShortx;
    }

    public void setnShortx(Integer nShortx) {
        this.nShortx = nShortx;
    }

    public Integer getnShorty() {
        return nShorty;
    }

    public void setnShorty(Integer nShorty) {
        this.nShorty = nShorty;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        SysUserShortcut that = (SysUserShortcut) o;
        return Objects.equals(nSysUserShortcutId, that.nSysUserShortcutId) && Objects.equals(nUserId, that.nUserId) && Objects.equals(nMenuId, that.nMenuId) && Objects.equals(nShortx, that.nShortx) && Objects.equals(nShorty, that.nShorty);
    }

    @Override
    public int hashCode() {
        return Objects.hash(nSysUserShortcutId, nUserId, nMenuId, nShortx, nShorty);
    }
}
